<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.bootcss.com/normalize/8.0.1/normalize.min.css">
    <title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
    <div id="root"></div>

    <script>
        const docElement = document.documentElement;
        function setRemUnit(){
            docElement.style.fontSize = docElement.clientWidth/750*100 + 'px';
            console.log(docElement.clientWidth);
            console.log(docElement.clientWidth/750);
            console.log(docElement.clientWidth/750*100);
        }
        setRemUnit()
        window.addEventListener('resize', setRemUnit);
    </script>
</body>
</html>